#include<iostream>
using namespace std;
int v[10],n;
int main()
{ int s,p,i,E;

cout<<"n=";
cin>>n;

for(i=1;i<=n;i++)
{   cout<<"v["<<"]=";
    cin>>v[i];
}
p=1;s=0;
for(i=1;i<=n;i++)
{ p=p*v[i];
  s=s+v[i];
  E=s+p;
  cout<<"produsul este= ";cout<<p;cout<<endl;
  cout<<"suma este= ";cout<<s;cout<<endl;
  cout<<"adunarea= ";cout<<E;cout<<endl;
 
}
}

